public class java2024_5_14 {
    //    public static void main(String[] args) {
////        Student student = new Student("zhangsan",18,"男");
////        System.out.println(student);
////        System.out.println(Student.getClassRoom());
////        Student student1 = new Student();
//////      //不建议使用
////        System.out.println(student1.getClassRoom());
//
//        //就地初始化
////        System.out.println(Student.getClassRoom());
////
////        //使用get方法
////        System.out.println(Student.getClassRoom());
////
////        //使用构造方法
////        Student student = new Student("zhangsan",18,"男");
////        System.out.println(Student.getClassRoom());
//
//        //使用静态代码块
////        System.out.println(Student.getClassRoom());
//        //
//
////        Student student = new Student();
//
////        student.show();
//
//        //静态代码块之后调用一次，而实例代码块创建一个调用一次
////
////        Student student = new Student();
////        System.out.println(student);
//
//    }
    public static void main(String[] args) {
//        Cat cat = new Cat("mimi",1);
//        System.out.println(cat);
        Cat cat = new Cat();
//        cat.name = "mimi";
        //优先使用子类中的成员变量
        cat.show();

    }

}
